from django.db import models


# Create your models here.
class BlogModels(models.Model):
    id = models.AutoField(primary_key=True)
    title = models.CharField(max_length=100,null=False)
    content = models.TextField(null=False)
    link = models.CharField(max_length=100,null=False)
    def __repr__(self):
        return self.title
class Employee(models.Model):
    name = models.CharField(max_length=10,null=False)
    age = models.CharField(max_length=2,null=False)
    def __repr__(self):
        return self.name